﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>homePage</title>

    <!-- WinJS references -->
    <link href="//Microsoft.WinJS.1.0/css/ui-light.css" rel="stylesheet" />
    <script src="//Microsoft.WinJS.1.0/js/base.js"></script>
    <script src="//Microsoft.WinJS.1.0/js/ui.js"></script>

    <link href="/css/default.css" rel="stylesheet" />
    <link href="/pages/home/home.css" rel="stylesheet" />
    <script src="/pages/home/home.js"></script>
</head>
<body>
    <!-- Images List Template -->

    <div id="headerTemplate" data-win-control="WinJS.Binding.Template" style="display: none">
        <h2 id="groupTitleHome" class="groupTitle" data-win-bind="innerText: title" 
            onmouseover="groupTitleMouseOver(this);"
            onmouseout="groupTitleMouseOut(this);"
            onclick="WinJS.Navigation.navigate('/pages/listingPage/index.html', { title: event.srcElement.innerText })" role="link"></h2>
    </div>

    <div id="imageTextListTemplate" 
         data-win-control="WinJS.Binding.Template">
        <div class="imageTextList">
            <img class="imageTextListImage" 
                data-win-bind="alt: Name; src: Icon" onerror="this.src='../../images/no-pic.jpg'" />
            <div class="imageTextListTextArea">
                <h2 class="imageTextListTextName win-type-ellipsis" 
                    data-win-bind="innerText: Name">
                </h2>
                <div class="win-small" 
                     data-win-control="WinJS.UI.Rating" 
                     data-win-bind="winControl.averageRating: Rate WinJS.Binding.oneTime" 
                     data-win-options="{ disabled: true }">
                </div>
                <h6 class="imageTextListTextLicense" 
                    data-win-bind="innerText: Paid">
                </h6>
                <h5 class="imageTextListTextDescription" 
                    data-win-bind="innerText: ShortDescription">
                </h5>
            </div>
        </div>
    </div>

    <!-- The content that will be loaded and displayed. -->

    <div class="searchResult fragment">
        <header aria-label="Header content" role="banner">
            <button class="win-backbutton" aria-label="Back" disabled type="button"></button>
            <h1 class="titlearea win-type-ellipsis">
                <span class="pagetitle"><img alt="#" src="/images/logo-home.png" /></span>
            </h1>
        </header>
        <section aria-label="Main content" role="main">
            <!--<h2 class="groupTitle">Top Downloads</h2>-->
            <!-- List -->
            <div id="imageTextList" 
                 data-win-control="WinJS.UI.ListView" 
                 data-win-options="{ layout: { type: WinJS.UI.GridLayout }, 
                                     itemTemplate: select('#imageTextListTemplate'), 
                                     groupHeaderTemplate: select('#headerTemplate'), 
                                     selectionMode: 'none' }">
            </div>
        </section>
    </div>
</body>
</html>
